#!/bin/bash

# Load environment variables
if [[ -f ".env" ]]; then
    export $(cat .env | grep -v '^#' | xargs)
fi

# Start the MCP server
echo "🚀 Starting Java Decompiler MCP Server..."
echo "CFR_PATH: $CFR_PATH"
echo "FERNFLOWER_PATH: $FERNFLOWER_PATH"
echo "MAVEN_LOCAL_REPOSITORY: $MAVEN_LOCAL_REPOSITORY"
echo "================================"

node dist/index.js
